const mongoose = require('mongoose')
const { Schema } = mongoose

// 站点管理系统菜单导航表规则
const menu = new Schema({
  id: {
    type: String,
    required: true 
  },
  pid: {
    type: String
  },
  sort: {
    type: Number
  },
  disabled: {
    type: Boolean
  },
  path: {
    type: String,
    required: true
  },
  name: {
    type: String,
    required: true
  },
  title: {
    type: String,
    required: true
  },
  icon: {
    type: String
  },
  component: {
    type: String,
    required: true
  }
})

const sys_menuTables = mongoose.model('sys_menuTables', menu)

module.exports = sys_menuTables
